package com.ssyx.payment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ssyx.enums.PaymentType;
import com.ssyx.model.order.PaymentInfo;

import java.util.Map;

/**
 * ClassName:PaymentInfoService
 * Description:
 *
 * @Author kay
 * @Create 2024/5/24 17:02
 * @Version 1.0
 */
public interface PaymentInfoService extends IService<PaymentInfo> {


    PaymentInfo getPaymentInfo(String orderNo, PaymentType paymentType);

    PaymentInfo savePaymentInfo(String orderNo, PaymentType paymentType);

    //// 成功后,修改支付记录表状态,已支付;修改订单记录已支付,并扣减库存
    void paySuccess(String outTradeNo, Map<String, String> resultMap);
}
